<body>
	<div class="subnav">
		<div class="content-menu ib-a blue line-x">

			<a href='/Focus/'><em>焦点图列表</em></a><span>|</span><a
				href='javascript:;' class="on"><em>编辑焦点图</em></a>
		</div>
	</div>
	<div class="pad_10">
		<div class="common-form">
			<form name="myform" enctype="multipart/form-data"
				action="/Focus/edit/" method="post" id="myform">
				<table width="100%" class="table_form contentWrap">
					<tr>
						<td><strong>所属分类：</strong></td>
						<td><select id="cate_id" name="cate_id">
								<option value="">--请选择分类--</option>
								<?php
								if(!empty($Catelist)) {
								foreach ($Catelist as $val) {
								?>
								<option
									<?php
									if($val['FocusCate']['id']==$FocusInfo['Focus']['cate_id']) {
									?>selected
									<?php } ?> value="<?php echo $val['FocusCate']['id'] ?>">
									<?php echo $val['FocusCate']['name'] ?>
								</option>
								<?php }} ?>
						</select></td>
					</tr>
					<tr>
						<td width="80"><strong>标题：</strong></td>
						<td><input type="text" name="title" id="title" size="60px"
							value="<?php echo $FocusInfo['Focus']['title'] ?>"
							class="input-text"></input></td>
					</tr>
					<tr>
						<td><strong>地址：</strong></td>
						<td><input type="text" name="url" id="url" size="60px"
							value="<?php echo $FocusInfo['Focus']['url'] ?>"
							class="input-text"></input></td>
					</tr>
					<tr>
						<td><strong>图片：</strong></td>
						<td><input type="file" name="img" id="img" size="60px"
							class="input-text"></input> <?php if($FocusInfo['Focus']['img_small']) { ?>
							<br> <img style="border: 1px solid #999999; padding: 1px;"
							src="<?php echo Configure::read('admin_config.mainDomain'); ?><?php echo $FocusInfo['Focus']['img_small'] ?>">
							<?php } ?></td>
					</tr>
					<tr>
						<td><strong>排序值：</strong></td>
						<td><input type="text" name="order" id="order"
							onafterpaste="this.value=this.value.replace(/\D/g,'')"
							onkeyup="this.value=this.value.replace(/\D/g,'')"
							value="<?php echo $FocusInfo['Focus']['order'] ?>" size="8"
							class="input-text" id="email" size="30"></input></td>
					</tr>

					<tr>
						<td><strong>摘要：</strong></td>
						<td><textarea style="width: 50%; height: 70px;" id="content"
								name="content"><?php echo $FocusInfo['Focus']['content'] ?></textarea></td>
					</tr>
					<tr>
						<td><strong>审核状态：</strong></td>
						<td><input type="radio"<?php if
							($FocusInfo['Focus']['status']) { ?>checked="checked"<?php } ?>
							value="1" name="status">&nbsp;已审核&nbsp;&nbsp;&nbsp; <input
							type="radio"<?php if (!$FocusInfo['Focus']['status']) {
							?>checked="checked"<?php } ?> value="0"
							name="status">&nbsp;未审核&nbsp;&nbsp;&nbsp;</td>
					</tr>
				</table>
				<div class="bk15"></div>
				<input type="hidden" id="id" name="id"
					value="<?php echo $FocusInfo['Focus']['id'] ?>"></input> <input
					name="dosubmit" type="submit" value="提交" class="button">
			</form>
		</div>
	</div>
</body>